.wallpaperGrid {
    height: 60vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 8px;
}

.wallpaperItem {
    position: relative;
    padding-bottom: 75%;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #f0f0f0;

    &:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);

        .hoverMask {
            opacity: 1;
        }

        .downloadBtn,
        .selectBtn {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

.thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hoverMask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.downloadBtn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 2;
    cursor: pointer;

    &:hover {
        background: rgba(0, 0, 0, 0.9);
        transform: translateY(-10px) scale(1.1);
    }
}

.selectBtn {
    position: absolute;
    top: 35%;
    left: 40%;
    transform: translate(-40%, 20px);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    cursor: pointer;

    &:hover {
        background: rgba(24, 144, 255, 0.9);
        transform: translate(-40%, 20px) scale(1.1);
    }
}

.loadingSpin {
    grid-column: 1 / -1;
    padding: 20px;
    text-align: center;
}

.noMoreData {
    grid-column: 1 / -1;
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

// 视频预览弹窗样式
.videoPreviewModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.videoPreviewContent {
    position: relative;
    width: 80%;
    max-width: 1200px;
    max-height: 80vh;
}

.videoPlayer {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
}

.imagePreview {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: #000;
}

.closePreviewBtn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
        color: #ccc;
    }
}